<?php
/**
 * 
 * @author	ronnie  (comdeng@gmail.com)
 * @link		http://fillphp.com/
 * @date		2014-5-3 上午12:31:59
 * @file		BlankController.php
 * @description 
 */
namespace com\demo\page\bbs;

use fillphp\Response;
class BlankController extends \fillphp\page\Controller
{
	/**
	 * 论坛列表
	 * @param int $bbsId
	 * @param string $orderBy
	 */
	function listsAction($bbs_id, $order_by = 'reply_time')
	{
		$lists = array(
			array(
				'topic_id' => 10012,
				'topic_title' => '你们的论坛好好玩',
				'create_time' => 1399055358,
				'user_id'	  => 40,
			),
			array(
				'topic_id' => 10001,
				'topic_title' => '生命诚可贵，爱情价更高',
				'create_time' => 1309055358,
				'user_id'	  => 41,
			),
		);
		
		$users = $this->helper('User')->getLists($lists, 'user_id');
		
		return $this->display("bbs/tpl/lists.phtml", array(
				'lists' => $lists,
				'users'	=> $users,
		));
	}
}
